package win.tbs.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import win.tbs.common.utils.PageUtils;
import win.tbs.gulimall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author MoMing
 * @email wangnimvp@163.com
 * @date 2021-01-22 23:47:57
 */
public interface CategoryService extends IService<CategoryEntity> {


    List<CategoryEntity> listWithTree();


    PageUtils queryPage(Map<String, Object> params);

    void removeMenuByIds(List<Long> asList);


    /**
     * 找到catelogId的完整路径；
     * [父/子/孙]
     * @param catelogId
     * @return
     */
    Long[] findCatelogPath(Long catelogId);


    void updateCascade(CategoryEntity category);




}

